package com.wangzha.common.model.base;

import com.jfinal.plugin.activerecord.IBean;
import com.jfinal.plugin.activerecord.Model;

public abstract class BaseDeviceGroup<M extends BaseDeviceGroup<M>> extends Model<M> implements IBean {

	public M setId(Long id) {
		set("id", id);
		return (M)this;
	}
	
	public Long getId() {
		return getLong("id");
	}

	/**
	 * 设备分组
	 */
	public M setName(String name) {
		set("name", name);
		return (M)this;
	}
	
	/**
	 * 设备分组
	 */
	public String getName() {
		return getStr("name");
	}

	/**
	 * 创建时间
	 */
	public M setCreateTime(java.util.Date createTime) {
		set("create_time", createTime);
		return (M)this;
	}
	
	/**
	 * 创建时间
	 */
	public java.util.Date getCreateTime() {
		return getDate("create_time");
	}

	/**
	 * 修改时间
	 */
	public M setUpdateTime(java.util.Date updateTime) {
		set("update_time", updateTime);
		return (M)this;
	}
	
	/**
	 * 修改时间
	 */
	public java.util.Date getUpdateTime() {
		return getDate("update_time");
	}

	/**
	 * 用户
	 */
	public M setUserCode(String userCode) {
		set("user_code", userCode);
		return (M)this;
	}
	
	/**
	 * 用户
	 */
	public String getUserCode() {
		return getStr("user_code");
	}


}
